﻿<NavigationWindow 
	x:Class="TreeBuilder.Help.HelpWindow"
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
	xmlns:Help="clr-namespace:TreeBuilder.Help" xmlns:Controls="clr-namespace:Elderos.Controls;assembly=Elderos.Controls" Title="TreeBuilder Help" 
	WindowStartupLocation="CenterOwner"
	MaxWidth="800" MinWidth="640" MinHeight="300" Icon="/TreeBuilder;component/Icons/help.png" Loaded="NavigationWindow_Loaded">
	<NavigationWindow.Resources>
		<Style TargetType="Controls:HyperlinkLabel">
			<Setter Property="Margin" Value="0,2,0,0"/>
			<Setter Property="Padding" Value="5,0,0,0"/>
			<Setter Property="Background" Value="Transparent"/>
			<Setter Property="Foreground" Value="Black"/>
			<Style.Triggers>
				<Trigger Property="IsActive" Value="True">
					<Setter Property="Background" Value="DeepSkyBlue"/>
					<Setter Property="Foreground" Value="White"/>
				</Trigger>
				<Trigger Property="IsMouseOver" Value="True">
					<Setter Property="Background" Value="SkyBlue"/>
					<Setter Property="Foreground" Value="White"/>
				</Trigger>
			</Style.Triggers>
		</Style>
	</NavigationWindow.Resources>
	<NavigationWindow.CommandBindings>
		<CommandBinding Command="GoToPage" Executed="GoToPage_Executed"/>
	</NavigationWindow.CommandBindings>
	<NavigationWindow.Content>
		<Grid>
			<Grid.ColumnDefinitions>
				<ColumnDefinition Width="150"/>
				<ColumnDefinition/>
			</Grid.ColumnDefinitions>
			<Border BorderBrush="Beige" BorderThickness="0,0,2,0">
				<StackPanel Name="LinkPanel" Margin="10,10,10,10">
					<TextBlock Text="Content:" Margin="10,0,0,0"/>
					<Separator Margin="10,2,0,5"/>
					<Controls:HyperlinkLabel 
						Content="General Info" 
						Uri="pack://application:,,,/Help/GeneralInfoPage.xaml"
						IsActive="True"/>
					<Controls:HyperlinkLabel 
						Content="Creating a node" 
						Uri="pack://application:,,,/Help/CreatingNodePage.xaml"
						/>
					<Controls:HyperlinkLabel 
						Content="Binders" 
						Uri="pack://application:,,,/Help/BindersPage.xaml"
						/>
					<Controls:HyperlinkLabel 
						Content="Frames" 
						Uri="pack://application:,,,/Help/FramesPage.xaml"
						/>
					<Controls:HyperlinkLabel 
						Content="Indexes" 
						Uri="pack://application:,,,/Help/IndexesPage.xaml"
						/>
					<Controls:HyperlinkLabel 
						Content="Saving the tree" 
						Uri="pack://application:,,,/Help/SavingTheTreePage.xaml"
						/>
					<Controls:HyperlinkLabel 
						Content="Options" 
						Uri="pack://application:,,,/Help/OptionsPage.xaml"
						/>
					<Controls:HyperlinkLabel 
						Content="Hotkeys" 
						Uri="pack://application:,,,/Help/HotkeysPage.xaml"
						/>
				</StackPanel>
			</Border>
			<ScrollViewer Grid.Column="1" VerticalScrollBarVisibility="Auto">
				<Frame 
					Name="HelpFrame" 
					Source="GeneralInfoPage.xaml"
					Navigated="HelpFrame_Navigated"
					/>
			</ScrollViewer>
		</Grid>
	</NavigationWindow.Content>
</NavigationWindow>